import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-11-12
 * Time: 14:24
 */
public class Demo6 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./test.txt")) {
            BufferedWriter bufferedWriter = new BufferedWriter(writer);
            writer.write("你好");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
